package com.demo.entity.Vo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 返回科室监控对象
 */
@Data
public class DepartmentVo implements Serializable {
    @ApiModelProperty("部门科室编号")
    @TableId(value = "dept_no", type = IdType.AUTO)
    private Integer deptNo;

    @ApiModelProperty("病区名称")
    @TableField("dept_area_name")
    @NotBlank(message = "病区编号不能为空")
    private String deptAreaName;

    @ApiModelProperty("病区编号")
    @TableField("dept_sn")
    @NotNull(message = "病区编号不能为空")
    private Integer deptSn;

    @ApiModelProperty("病区映射")
    @TableField("dept_mapping")
    @NotNull(message = "病区映射不能为空")
    private Integer deptMapping;

    @ApiModelProperty("类型 1内科 2外科")
    @TableField("dept_type")
    @NotNull(message = "类型不能为空")
    private Integer deptType;

    @ApiModelProperty("所属科室")
    @TableField("dept_name")
    @NotBlank(message = "所属科室不能为空")
    private String deptName;

    @ApiModelProperty("所属院区")
    @TableField("dept_hospital_disttrict")
    @NotBlank(message = "所属院区不能为空")
    private String deptHospitalDisttrict;

    @ApiModelProperty("创建时间")
    @TableField(value = "created_time", fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createdTime;

    @ApiModelProperty("创建人 ID")
    @TableField("created_user_id")
    @NotNull(message = "创建人 ID 不能为空")
    private Integer createdUserId;

    @ApiModelProperty("删除时间")
    @TableField("deleted_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date deletedTime;

    @ApiModelProperty("删除人 ID")
    @TableField("deleted_user_id")
    private Integer deletedUserId;

    @ApiModelProperty("更新时间")
    @TableField(value = "updated_time", fill = FieldFill.UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updatedTime;

    @ApiModelProperty("更新人 ID")
    @TableField("updated_user_id")
    private Integer updatedUserId;

    @ApiModelProperty("部门人数")
    @TableField("dept_count")
    private Integer deptCount;

}
